<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title><s:text name="辅助属性" /></title>
		<link rel="stylesheet" type="text/css" href="css/public.css">
		<script type="text/javascript" src="js/sorttable.js"></script>
		<script language="JavaScript" src="js/public.js"></script>
		<script type="text/javascript" src="js/date1.js"></script>
		<script type="text/javascript" >
		function showAddAttributeBasic(){
			var formname = document.getElementById("delrow");//form的ID
			formname.action = "showAddAttributeBasic.action";
			formname.submit();
		}
		</script>
		
	</head>
	<body>
		<s:form action="getAttributeBasicByCondition.action" id="delrow"
			theme="simple">
			<input type="hidden" name="assistantAttributeTypeId"
				id="assistantAttributeTypeId" value="${assistantAttributeTypeId}" />
			<div id="info_all">
				<div id="info_top">
					<s:text name="辅助属性"></s:text>
				</div>
				<!-- 主输入区 -->
				<!-- 功能按钮 -->
				<div id="btn">
					<input type="button" value="新建"
						onClick="showAddAttributeBasic();"
						onFocus="this.blur()" onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="修改"
						onClick="updateAction('showEditAttributeBasic')"
						onFocus="this.blur()" onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="删除"
						onClick="deleteAction('deleteAttributeBasic')"
						onFocus="this.blur()" onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
				</div>
				<div id="info_main">
					<div id="select">
						<hr>
						<table>
							<tr>
								<td>
									<s:text name="代码"></s:text>
									&nbsp;
								</td>
								<td>
									<s:textfield name="attributeModel.assistantAttributeCode"
										size="12" />
									&nbsp;&nbsp;&nbsp;
								</td>
								<td>
									<s:text name="名称"></s:text>
									&nbsp;
								</td>
								<td>
									<s:textfield name="attributeModel.assistantAttributeName"
										size="12" />
									&nbsp;&nbsp;&nbsp;
								</td>
							</tr>
						</table>
					</div>
					<div class="sele">
						<s:submit value="查询" onfocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" id="btnsize"></s:submit>
						<input type="reset" value="重置" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />
						<hr>
					</div>
	
		<!-- 信息显示栏 -->
		<table id="info_table" width="340px" cellspacing=1px cellpadding=1px
				>
				<thead>
					<tr>
						<th>
							<input type="checkbox" onClick="selectAll()" name="checkbox1" />
						</th>
						<th width="120px">
							<s:text name="代码" />
						</th>
						<th width="120px">
							<s:text name="名称" />
						</th>
					</tr>
				</thead>
			</table>
		<div id="info_info1">
			<table id="info_table" width="340px" cellspacing=1px cellpadding=1px
				class="sortable">
				<tbody>
					<s:if test="!list.isEmpty">
						<s:iterator value="list">
							<tr>
								<td>
									<s:checkbox name="rowlist" fieldValue="%{assistantAttributeId}"
										theme="simple" value="false" />
								</td>
								<td width="120px">
									<s:property value="assistantAttributeCode" />
									&nbsp;
								</td>
								<td width="120px">
									<s:property value="assistantAttributeName" />
									&nbsp;
								</td>
							</tr>
						</s:iterator>
					</s:if>
				</tbody>
				<tfoot>
					<tr>
					</tr>
				</tfoot>
			</table>
			<script language="javascript">
	//("表格名称","奇数行背景","偶数行背景","点击后背景");
	mouseclick("info_table", "#ffffff", "#ffffff", "#e6f0fd");
	//("表格名称","奇数行背景","偶数行背景");
	//setcolor("t","#ffffff","#ffffff");
</script>
		</div>
		</div>
		</div>
		</s:form>
	</body>
</html>


